from flask import Blueprint

auth_blueprint = Blueprint('auth', __name__, url_prefix='/auth')
personal_blueprint = Blueprint('personal', __name__, url_prefix='/personal')
post_blueprint= Blueprint('post', __name__, url_prefix='/post')
check_blueprint = Blueprint('check', __name__, url_prefix='/check')
like_blueprint= Blueprint('like', __name__, url_prefix='/like')
block_blueprint= Blueprint('block', __name__, url_prefix='/block')
role_blueprint= Blueprint('role', __name__, url_prefix='/role')
#TODO route
from blueprints.auth.page import *
from blueprints.auth.service import *
from blueprints.personal.model import *
from blueprints.personal.page import *
from blueprints.post.model import *
from blueprints.post.page import *
from blueprints.post.service import *
from blueprints.check.page import *
from blueprints.like.page import *
from blueprints.blocks.page import *
from blueprints.role.model import *

def blueprint_register(app):
    app.register_blueprint(auth_blueprint)
    app.register_blueprint(personal_blueprint)
    app.register_blueprint(post_blueprint)
    app.register_blueprint(check_blueprint)
    app.register_blueprint(like_blueprint)
    app.register_blueprint(block_blueprint)
    app.register_blueprint(role_blueprint)

